@import "./view-styles";

.error, .loading {
    padding: 50px;
    text-align: center;
}

.error {
    color: var(--dui-color-red);
}

.wrapper {
    border-radius: 4px;
    border: 1px solid var(--dui-line-color-light);
    margin: 30px auto;
    max-width: 800px;
    padding: 25px;

}

.responses-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
}

.routes {
    margin-top: 25px;

    > .title {
        font-size: 12px;
        line-height: 16px;
        font-weight: 600;
        margin-top: 15px;
    }

    .route-details {
        padding: 10px 25px;
        background-color: var(--dui-window-header-bg);
    }

    .route {
        margin-top: 12px;
        padding: 8px;
        border-radius: 3px;
        background-color: var(--dui-window-header-bg);
        border: 1px solid var(--dui-line-color-light);
        cursor: pointer !important;

        &:hover {
            border: 1px solid var(--dui-line-color);
        }

        .description {
            font-size: 12px;
            color: var(--dui-text-light);
        }

        .title {
            display: flex;
            align-items: center;
            overflow: hidden;

            .path {
                flex: 1;
                overflow: hidden;
                word-break: keep-all;
                text-overflow: ellipsis;
            }

            .method {
                text-align: right;
                font-size: 11px;
                font-weight: bold;
                padding: 0 5px;
                margin-left: 4px;

                border: 1px solid var(--dui-line-color);
                border-radius: 3px;

                &.GET {
                    border: 1px solid var(--dui-color-green);
                    color: var(--dui-color-green);
                }
                &.DELETE {
                    border: 1px solid var(--dui-color-red);
                    color: var(--dui-color-red);
                }

                &.PATCH, &.PUT, &.POST {
                    border: 1px solid var(--dui-color-orange);
                    color: var(--dui-color-orange);
                }
            }
        }
    }
}

.description ::ng-deep {
    h1 {
        font-size: 32px;
        line-height: 36px;
    }

    h2 {
        font-size: 26px;
        line-height: 30px;
    }

    h3 {
        font-size: 22px;
        line-height: 26px;
    }

    h4 {
        font-size: 18px;
        line-height: 22px;
    }
}
